/**
 * This file is part of the flushOS project.
 *
 * Copyright (C) 2007 triton
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 */

#ifndef __STDDEF_H__
#define __STDDEF_H__

#if !defined(__cplusplus)
#define NULL ((void *)0)
#else
#define NULL 0
#endif /* !__cplusplus */

#define	offsetof(type, member) ((size_t)(unsigned long)(&((type *)0)->member))

#endif /* __STDDEF_H__ */
